liblockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:32:11 +0000 (21:32 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 6 Aug 2017 04:24:47 +0000 (05:24 +0100)
commitc900ca45ffb0e46e18fa6b9690db10c44193fe9a
tree235209f0c4bce76abeab7feabd2219c195920930
parentc94c733e8552d14de822cd02ac6619b8569d364f
liblockdep: Fix 'defined but not used' warning for init_utsname()

We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.

Since it is only used by lockdep.c, define it in there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-defined-but-not-used-warning-for-init.patch
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h